package com.breeze.components.socket.redis.action;

import com.alibaba.fastjson2.JSONObject;
import com.breeze.components.socket.WebSocketManager;

/**
 * 动作
 *
 * @author breeze
 */
public interface Action {

  String IDENTIFIER = "identifier";
  String MESSAGE = "message";
  String ACTION = "action";

  /**
   * 消息分发
   *
   * @param manager webSocket管理器
   * @param object 消息体转化的JSON
   */
  void doMessage(WebSocketManager manager, JSONObject object);
}
